@extends('front.header')
@section('title','视频详情')
@section('red')
    <div class="nav">
        <ul class="nav_body">
            <li><a  href="/">首页</a></li>
            <li><a  href="/expert/lecture">名家讲堂</a></li>
            <li><a href="/expert/front-list">名家风采</a></li>
            <li><a class="current" href="/video/show">往期视频</a></li>
        </ul>
    </div>
@endsection
@section('content')
    <div class="main">
        <div class="past_top clearfix">
            <div class="past_left">
                <div class="past_left_title">{{$currentvideo->title}}</div>
                <div class="past_left_video">
                    <div class="video" style="width: 600px;height: 400px;"></div>
                    <script type="text/javascript">
                        //定义一个变量：videoObject，用来做为视频初始化配置
                        var videoObject = {
                            container: '.video', //“#”代表容器的ID，“.”或“”代表容器的class
                            video: '{{$currentvideo->url}}'//视频地址
                        };
                        new ckplayer(videoObject);//初始化播放器
                    </script>
                </div>
                <div class="online_class_share">
                    <span>分享到：</span>
                    <a href="javascript:void(show())"><img src="/assets/images/icon_weixin.jpg" /></a>
                </div>
            </div>
            <div class="past_right">
                <div class="past_intro">
                    <div class="title_box">本期简介</div>
                    <div class="past_intro_body">
                        <p>{!!$currentvideo->content!!}</p>
                    </div>
                </div>
                <div class="past_other">
                    <div class="past_other_title">其他讲堂</div>
                    <div class="past_other_list">
                        <div class="past_other_ship">
                            @foreach($othervideo as $v)
                                <a href="/video/review/{{$v->id}}">
                                    <img src="{{$v->thumb}}"/></a>
                        </div>
                        @endforeach
                    </div>
                </div>
            </div>
        </div>
        <div class="past_export">
            @foreach($currentvideo->connection as $v)
                <div class="title_box">本期嘉宾</div>
                <div class="export_this_list">
                    <div class="export_this_ship clearfix">
                        <div class="left_export"><img src="{{$v->photo}}"/></div>
                        <div class="right_export">
                            <div class="export_base">
                                <p class="name">{{$v->name}}教授</p>
                                <p><b>科室：</b>{{$v->department}}</p>
                                <p><b>职称：</b>{{$v->position}}</p>
                            </div>
                            <div class="export_this_intro">
                                <p>{{$v->introduction}}</p>
                                <div class="export_edu clearfix">
                                    <div class="edu_title">接受教育：</div>
                                    <div class="edu_info">
                                        <p>{{$v->degree}}</p>
                                        <p><a href="/expert/front-list-detail/{{$v->id}}">【详情】</a></p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            @endforeach
        </div>
    </div>
    </div>
    </div>
    </div>
    </html>
@endsection
